package com.woniu.pojo;

import java.io.Serializable;

/**
 * coursetable
 * @author 
 */
public class Coursetable implements Serializable {
    private Integer ctId;

    private Integer classId;

    private Integer courseId;

    private Integer ctWeek;

    private Integer ctTime;

    private String coname;

    private String clname;

    public String getConame() {
        return coname;
    }

    public void setConame(String coname) {
        this.coname = coname;
    }

    public String getClname() {
        return clname;
    }

    public void setClname(String clname) {
        this.clname = clname;
    }

    private static final long serialVersionUID = 1L;

    public Integer getCtId() {
        return ctId;
    }

    public void setCtId(Integer ctId) {
        this.ctId = ctId;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public Integer getCtWeek() {
        return ctWeek;
    }

    public void setCtWeek(Integer ctWeek) {
        this.ctWeek = ctWeek;
    }

    public Integer getCtTime() {
        return ctTime;
    }

    public void setCtTime(Integer ctTime) {
        this.ctTime = ctTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Coursetable other = (Coursetable) that;
        return (this.getCtId() == null ? other.getCtId() == null : this.getCtId().equals(other.getCtId()))
            && (this.getClassId() == null ? other.getClassId() == null : this.getClassId().equals(other.getClassId()))
            && (this.getCourseId() == null ? other.getCourseId() == null : this.getCourseId().equals(other.getCourseId()))
            && (this.getCtWeek() == null ? other.getCtWeek() == null : this.getCtWeek().equals(other.getCtWeek()))
            && (this.getCtTime() == null ? other.getCtTime() == null : this.getCtTime().equals(other.getCtTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCtId() == null) ? 0 : getCtId().hashCode());
        result = prime * result + ((getClassId() == null) ? 0 : getClassId().hashCode());
        result = prime * result + ((getCourseId() == null) ? 0 : getCourseId().hashCode());
        result = prime * result + ((getCtWeek() == null) ? 0 : getCtWeek().hashCode());
        result = prime * result + ((getCtTime() == null) ? 0 : getCtTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ctId=").append(ctId);
        sb.append(", classId=").append(classId);
        sb.append(", courseId=").append(courseId);
        sb.append(", ctWeek=").append(ctWeek);
        sb.append(", ctTime=").append(ctTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}